
import java.util.concurrent.atomic.AtomicInteger;

import org.jsoup.Connection;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;

public class CopyOfWalk extends Thread {

	private static AtomicInteger ai = new AtomicInteger(100000000);

	public void run() {
		int i = 1;
		while (i > 0) {
			i = ai.getAndDecrement();
			String url = "http://www.easou.org/files/article/image/1/1163/1163s.jpg";
			//String url ="http://bzzcc.com/";
			//String url="http://www.fanli2.com/index.php?mod=user&act=register";
			// String url="http://www.gztomgy.com/";
			
			try {
				Connection c = Jsoup.connect(url);
				c.timeout(100000000);

				c.userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0");

				System.out.println(  c.execute().bodyAsBytes().length );
				
				
				//Document con = c.get();
				
				
			
				
				//System.out.println(con.html());
				System.out.println(i);

			} catch (Exception e) {
				//e.printStackTrace();
				System.out.println(e.getMessage());
			}
		}

	}

	public static void main(String[] args) {
		for (int i = 0; i < 100; i++) {
			new CopyOfWalk().start();
		}

	}
}
